﻿using Microsoft.Extensions.Hosting;
using Single.AppCore;
using Single.Autofac;
using Single.Npoi;

namespace Single.ConsoleApp
{
    internal class Program
    {
        static void Start()
        {
            Console.WriteLine("Hello Single");
        }

        static void Main(string[] args)
        {
            var builder = new HostBuilder();

            builder.Register("appsettings.json");

            builder.UseAutofacExtensions();

            var app = builder.Build();

            app.UseGlobalServices().Start();

            Start(); Console.ReadKey();
        }
    }
}